package com.bdsy.system.session;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class SessionContextListener implements HttpSessionListener {

	@Override
	public void sessionCreated(HttpSessionEvent event) {
		SessionContext.getInstance().addSession(event.getSession());
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent event) 
	{
		SessionContext.getInstance().removeSession(event.getSession());
	}
}